package com.hc.pokemen.feature_pokemen.presentation.util


import androidx.navigation.NamedNavArgument
import androidx.navigation.NavType
import androidx.navigation.navArgument

sealed class Screen(val route: String,val arguments: List<NamedNavArgument>) {
    object PokemonList : Screen("pokemon_list", emptyList())

    object PokemonDetail :
        Screen(
            route = "pokemon_detail/{dominantColor}/{pokemonName}",
            arguments = listOf(
                navArgument("dominantColor") {
                    type = NavType.IntType
                },
                navArgument("pokemonName") {
                    type = NavType.StringType
                }),
        ) {

        fun createRoute(dominantColor: Int, pokemonName: String): String {
            return "pokemon_detail/${dominantColor}/${pokemonName}"
        }
    }
}